package com.borrowed.book.system.mapper;

import com.borrowed.book.system.domain.SysDict;
import com.borrowed.book.system.domain.SysDictPojo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import sun.reflect.generics.tree.VoidDescriptor;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SysDictMapper {
    int insert(SysDict record);

    int insertSelective(SysDict record);

    List<SysDict>  selectDictByType(String code);

    SysDict selectDictByKey(Map map);

    void deleteById(Long id);

    void updateDict(Map map);

    void deleteByTypeCode(String code);

    SysDictPojo selectDictByTypeAndKey(Map map);
}